const pool = require('../tools/getPool');
const sendResponse = require('../tools/sendResponse');

module.exports = function(req, res){

	// 清空session
	req.session.isLogin = false;
	req.session.id = null;
	req.session.account = null;
	req.session.name = null;
	req.session.headimg = null;
	
	sendResponse('ok','退出登录成功', null, res);

}